Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(appBar): add tab in app bar #closes1280 #1811

Conversation

kaminderpal
Copy link
Contributor

@kaminderpal kaminderpal commented Feb 15, 2024

Description

Implement guide tab inside app bar

Fixes #1280

Issue created for mobile scrolling #1819

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Add the URL for your deploy!
https://kaminderpal.github.io/geoview/raw-feature-info.html

Checklist:

  • I have build (rush build) and deploy (rush host) my PR
  • I have connected the issues(s) to this PR
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have created new issue(s) related to the outcome of this PR is needed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This change is Reviewable

@kaminderpal kaminderpal marked this pull request as draft February 15, 2024 03:41
@kaminderpal kaminderpal marked this pull request as ready for review February 16, 2024 03:33
@kaminderpal kaminderpal changed the title feat(appBar): add guide tab in app bar #closes1280 feat(appBar): add tab in app bar #closes1280 Feb 16, 2024
Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 of 13 files at r1, 6 of 9 files at r2, 5 of 10 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: 16 of 22 files reviewed, 7 unresolved discussions (waiting on @kaminderpal)


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 55 at r2 (raw file):

  const appBarComponents = useUIAppbarComponents();
  const { hideClickMarker } = useMapStoreActions();
  const activeFooterTabId = useUIActiveFooterBarTabId();

Why are we using footer id in app bar?


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 154 at r2 (raw file):

    // open appbar detail drawer when click on map.
    if (activeFooterTabId === 'details' && buttonPanelGroups?.details?.AppbarPanelButtonDetails?.panel) {

We should have the same logic for open appbar control... Technically, we should not have details in footer and in appbar at the same time


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 189 at r2 (raw file):

  useEffect(() => {
    // Log
    logger.logTraceUseEffect('APP-BAR - create group of appbar buttons from footer bar group', mapId);

Should be no mention of footer... appbar can work with no footer


packages/geoview-core/src/core/components/common/layout.tsx line 84 at r2 (raw file):

  // // If we're on mobile
  // if (theme.breakpoints.down('md')) {

Do we need dead code?


packages/geoview-core/src/core/components/common/layout.tsx line 44 at r4 (raw file):

    (layer: LayerListEntry): void => {
      onLayerListClicked?.(layer);
      console.log('change is firing..');

No console log, use logger with proper level


packages/geoview-core/src/core/components/details/details-panel.tsx line 282 at r2 (raw file):

      if (anotherLayerEntry) {
        // Log
        // logger.logDebug('DETAILS-PANEL', 'select another', memoLayerSelectedItem, anotherLayerEntry.layerPath);

Can you uncomment logger


packages/geoview-core/src/core/components/details/details-panel.tsx line 287 at r2 (raw file):

      } else {
        // Log
        // logger.logDebug('DETAILS-PANEL', 'select none', memoLayerSelectedItem);

Can you uncomment logger

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 9 files at r2, 2 of 3 files at r3, 1 of 10 files at r4.
Reviewable status: 20 of 22 files reviewed, 7 unresolved discussions (waiting on @kaminderpal)

Copy link
Contributor Author

@kaminderpal kaminderpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 18 of 23 files reviewed, 7 unresolved discussions (waiting on @jolevesq)


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 55 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Why are we using footer id in app bar?

add TODO for this


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 154 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

We should have the same logic for open appbar control... Technically, we should not have details in footer and in appbar at the same time

add TODO for this


packages/geoview-core/src/core/components/app-bar/app-bar.tsx line 189 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Should be no mention of footer... appbar can work with no footer

Done.


packages/geoview-core/src/core/components/common/layout.tsx line 84 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Do we need dead code?

add investigation for this


packages/geoview-core/src/core/components/common/layout.tsx line 44 at r4 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

No console log, use logger with proper level

Done.


packages/geoview-core/src/core/components/details/details-panel.tsx line 282 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Can you uncomment logger

Done.


packages/geoview-core/src/core/components/details/details-panel.tsx line 287 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Can you uncomment logger

Done.

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 10 files at r4, 2 of 4 files at r6, all commit messages.
Reviewable status: 21 of 23 files reviewed, 4 unresolved discussions (waiting on @kaminderpal)


packages/geoview-core/src/core/components/common/enlarge-button-style.tsx line 30 at r6 (raw file):

    width: '7rem !important',
  },
  appBarEnlargeBtn: {

Put same name appBarEnlargeButton, like enlarege for for footer not Btn

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 4 files at r6.
Reviewable status: 22 of 23 files reviewed, 1 unresolved discussion (waiting on @kaminderpal)

Copy link
Contributor Author

@kaminderpal kaminderpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 22 of 23 files reviewed, 1 unresolved discussion (waiting on @jolevesq)


packages/geoview-core/src/core/components/common/enlarge-button-style.tsx line 30 at r6 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Put same name appBarEnlargeButton, like enlarege for for footer not Btn

Done.

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r7, 1 of 2 files at r8.
Reviewable status: 22 of 23 files reviewed, all discussions resolved (waiting on @kaminderpal)

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r8, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kaminderpal)

@jolevesq jolevesq merged commit 65f743c into Canadian-Geospatial-Platform:develop Feb 16, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Link side panel and footer panel
2 participants